namespace java com.mjlf.boot.thrift.idl

typedef i16 short
typedef i32 int
typedef i64 long
typedef string String

struct EventData {
    1:EventType eventType
    2:optional int pointX
    3:optional int pointY
    4:optional int keyCode
    5:optional int mouseButtons
    6:optional int wheelNum
}

enum EventType{
    MOUSE_PRESS
    MOUSE_RELEASE
    MOUSE_MOVE
    MOUSE_WHEEL
    MOUSE_DRAG

    KEY_PRESS
    KEY_RELEASE
}

exception DataException{
    1:int code
    2:String message
}

service EventService{
    void doEvent(1:EventData eventData) throws(1:DataException dataException)
}